package com.city.repository.party;

import com.city.domain.party.PartyApply;
import com.city.domain.party.PartyFlowout;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @deprecation: 入党申请
 * @dmail: 398521613@qq.com
 * @author: L-H
 * @date: 2018-07-18 13:14
 */
public interface PartyApplyRepository extends JpaRepository<PartyApply,Integer> {
    //分页查询
    @Query(value = "select * from party_apply limit ?1,?2",nativeQuery = true)
    List<PartyApply> findAllByPage(Integer page, Integer limit);
}
